﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="OilPhysicalProperties.aspx.cs" Inherits="Admin_OilPhysicalProperties" Title="Admin ~ OilPhysicalProperties" %>

<%@ Register src="../Usercontrols/Header.ascx" tagname="Header" tagprefix="uc1" %>
<%@ Register src="../Usercontrols/Menu1.ascx" tagname="Menu1" tagprefix="uc2" %>
<%@ Register src="../Usercontrols/Footer.ascx" tagname="Footer" tagprefix="uc3" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<table cellpadding="0" cellspacing="0" width="100%">
    <tr>         
        <td align="center" >
           <table cellpadding="0" cellspacing="0" width="900px" >
             
              <tr>
                 <td align="center"  valign="top"> 
                     <uc1:Header ID="Header1" runat="server" />
                 </td>
              </tr>
               
              <tr>
                    <td align="right">
                        <uc2:Menu1 ID="Menu11" runat="server" />
                    </td>
               </tr>
                    
              <tr>
                   <td align="center" valign="top" >        
                     
                     <table cellpadding="5" cellspacing="0" width="100%" class="mainTableBkg">
                        
                        <tr valign="top" align="left">
                            <td>
                                    <table >
                                               
                                                
                                               <tr valign="top" align="left" >                                    
                                                                <td> 
                                                                    <table>
                                                                        <tr>
                                                                             <td class="adminHeading " colspan="2">OIL PHYSICAL PROPERTIES </td>
                                             <td><asp:Label ID="lblMsg" runat="server" CssClass="messageLabel"></asp:Label> </td>
                                             <td align="right" > <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Admin/LiquidComposition.aspx">Go back to Liquid Composition</asp:HyperLink></td>
                                             <td align="right" ><asp:Label ID="lblExpdetails" runat="server" CssClass="informationLabe"></asp:Label> </td>                                        
                                            </tr>
                                                                    </table>
                                                                </td>
                                                 </tr>   
                                                            
                                <tr id="trOilPhyTextBox" runat="server" >
                                    <td >
                                        <table >
                                             <tr class="altanateAshBkg" id="trUserCode" runat="server" visible="false" >
                                    <td class='label' style="width: 120px">OilPhysicalProperId</td>
                                    <td><asp:TextBox ID="txtOilPhysicalPropId" runat="server" cssclass='textBox' Width='45px' 
                                            MaxLength="50"></asp:TextBox></td>
                                </tr> 
                                                               
                                <tr>
                                    <td colspan="2">
                                        <table style="width: 868px" >
                                           
                                            <tr class="altanateAshBkg">
                                            <td class='label'>Density (g/cm<sup>3</sup>)</td>
                                            <td><asp:TextBox ID="txtDensity" runat="server" cssclass='textBox' Width='35px' 
                                                    MaxLength="100"></asp:TextBox></td>
                                            <td class='label'>Viscosity Temperature (C)</td>
                                            <td><asp:TextBox ID="txtViscosityTemper" runat="server" cssclass='textBox' 
                                                    Width='35px' MaxLength="10"></asp:TextBox></td>
                                            <td class='label'>Flash Point (C)</td>
                                            <td><asp:TextBox ID="txtFlashPoint" runat="server" cssclass='textBox' Width='35px' 
                                                    MaxLength="100"></asp:TextBox></td>
                                            <td class='label'>Pour Point (C)</td>
                                            <td><asp:TextBox ID="txtPourpoint" runat="server" cssclass='textBox' Width='35px' 
                                                    MaxLength="10"></asp:TextBox></td>
                                            </tr>
                                            
                                            <tr class="ashBkg">
                                            <td class='label'>pH&nbsp;</td>
                                            <td><asp:TextBox ID="txtPh" runat="server" cssclass='textBox' Width='35px' 
                                                    MaxLength="10"></asp:TextBox></td>
                                            <td class='label'>Viscosity (cP)</td>
                                            <td><asp:TextBox ID="txtViscosity" runat="server" cssclass='textBox' Width='35px' 
                                                    MaxLength="100"></asp:TextBox></td>
                                            <td class='label'>HHV&nbsp; (MJ/kg)</td>
                                            <td><asp:TextBox ID="txtHHV" runat="server" cssclass='textBox' Width='35px' 
                                                    MaxLength="10"></asp:TextBox></td>
                                            <td class='label'>Heat of Combustion (kJ/kg)</td>
                                            <td><asp:TextBox ID="txtHeatofCombution" runat="server" cssclass='textBox' 
                                                    Width='35px' MaxLength="10"></asp:TextBox></sub></td>
                                            </tr> 
                                            
                                            <tr class="altanateAshBkg">
                                            <td class="label">Water Content (wt%)</td>
                                            <td><asp:TextBox ID="txtWaterContenet" CssClass="textBox" runat="server" 
                                                    Width="35px" ></asp:TextBox></td>
                                            <td class="label">Conradsen Carbon (wt%)</td>
                                            <td><asp:TextBox ID="txtConradsenCarbon" CssClass="textBox" runat="server" 
                                                    Width="35px" ></asp:TextBox></td>
                                            </tr>                                  
                                        </table>
                                    </td>
                                </tr> 
                                
                                <tr class="altanateAshBkg " align="left" >
                                    <td>  
                                        <asp:ImageButton ID="ImageButton1" runat="server" 
                                            ImageUrl="~/Images/btnSave.jpg" onclick="ImageButton1_Click" />
                                    </td>
                                    <td>
                                    <asp:Button ID="btnPrevious" Text="Select Record" runat="server" CssClass="button " 
                                            onclick="btnPrevious_Click" />
                                    </td>
                                </tr>
                                        
                                        </table>
                                    </td>
                                </tr>
                            
                                                               
                                <tr id="trDgOilPhysicalProperties" runat="server">
                                           <td align="left" style="padding-left:5px;" colspan='2'>
                                        <asp:GridView  Width="880px" AllowSorting="true" AutoGenerateEditButton="true"  
                                            AllowPaging="true" AutoGenerateColumns="false" ID="dgOilPhysicalProps" 
                                            runat="server" onrowediting="dgOilPhysicalProps_RowEditing" 
                                            onpageindexchanging="dgOilPhysicalProps_PageIndexChanging" >
                                            <Columns>      
                                           <%-- <asp:CommandField ButtonType="Image" ShowDeleteButton="true" DeleteImageUrl="~/Images/Delete-16x16.png"  DeleteText="Delete" Visible="true" />                                      --%>
                                                 <asp:BoundField DataField ="id" HeaderText ="ID"   />
                                                <asp:BoundField  DataField="density" HeaderText="Density"/>
                                                <asp:BoundField  DataField="viscosity" HeaderText="Viscosity" />
                                                <asp:BoundField  DataField="viscosity_temp" HeaderText="ViscosityTemp" />
                                                <asp:BoundField  DataField="flashpoint" HeaderText="FlashPoint" />
                                                <asp:BoundField  DataField="pourpoint" HeaderText="PoutPoint"/>
                                                <asp:BoundField  DataField="pH" HeaderText="pH" />
                                                <asp:BoundField  DataField="HHV" HeaderText="HHV" />
                                                <asp:BoundField  DataField="HeatOfCombustion" HeaderText="Heat Of Combution" />
                                                <asp:BoundField  DataField="watercontent" HeaderText="Water Content" />
                                                <asp:BoundField  DataField="conradsencarbon" HeaderText="Conradsen Carbon" />                                                                                         
                                            </Columns>
                                            <HeaderStyle CssClass="gridHeading" />
                                            <AlternatingRowStyle CssClass="gridAltRowStyleStyle" />                                                                                        
                                            <RowStyle CssClass="gridRowStyle" />                                                                                       
                                            <PagerStyle />
                                            <EditRowStyle CssClass="gridEditRow" />                                     
                                        </asp:GridView>
                                    </td>
                                    </tr>
                           
                                    </table>
                            </td>
                        </tr>               
                         
                     </table>
                     
                   </td>        
                </tr>  
                                                   
              <tr>
                        <td>    
                            <uc3:Footer ID="Footer1" runat="server" />
                        </td>
                   </tr> 
                    
             </table>
           </td> 
      </tr>
 </table> 


</asp:Content>

